package com.company;

public class Staff {

    private String id;

    private String name;

    private int age;

    private double salary;

    public Staff() {

    }

    public Staff(String id, String name, int age, double salary) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public void showInfo() {
        System.out.println(
                "工号：" + this.getId() + "，姓名：" + this.getName() + "，年龄：" + this.getAge() + "，工资：" + this.getSalary());
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
